package com.nowoe.data.exector;

import com.nowoe.data.config.Configuration;
import com.nowoe.data.statement.MapperStatement;

import java.util.List;

/**
 * @author 倚栏听风 2023/9/14 16:45
 */
public interface Executor {
    <E> List<E> query(Configuration configuration, MapperStatement mapperStatement, Object param) throws Exception;

    int update(Configuration configuration, MapperStatement mapperStatement, Object param) throws Exception;

    int delete(Configuration configuration, MapperStatement mapperStatement, Object param) throws Exception;

    int insert(Configuration configuration, MapperStatement mapperStatement, Object param) throws Exception;

    void close();
}
